package com.example.demo.mapper;

import com.example.demo.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ak
 * @since 2020-04-02
 */
@Mapper
@Repository
public interface UserMapper extends BaseMapper<User> {
    String checkPasswordByName(String username);

    User findeUserByUserName(String username);

    String getUserRole(String username);

    @Insert("insert into test(json_test) values(#{json})")
    void inserTest(Object json);
}
